package com.sc.nft.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dto.WantSellDTO;
import com.sc.nft.dto.WantSellOrderDTO;
import com.sc.nft.entity.ScrollShop;
import com.sc.nft.entity.ScrollWantSell;
import com.sc.nft.entity.UserInfo;

import java.math.BigDecimal;

/**
 * 卷轴商店寄售表服务接口
 *
 * @author zxy
 * @since 2024-09-04 02:15:00
 * @description 由 Mybatisplus Code Generator 创建
 */
public interface ScrollWantSellService {

    void postSell(UserInfo userInfo, ScrollShop scrollShop , Long equityId, BigDecimal unitPrice, Integer count);

    Page<ScrollWantSell> myWantSellPage(UserInfo user, Page mp);

    Page<WantSellDTO> wantSellPage(Long shopId, Page mp);

    void closeWantSellOrder(Long id, UserInfo user, String dealPassword);

    WantSellOrderDTO userBuyShopOrder(Long id, UserInfo user, Integer count);
}
